home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / print / masdir54.arj / DRDOS.EXE / SDLDEBUG.BAT next >
DOS Batch File  |  1991-02-15  |  2KB  |  53 lines

  1. ECHO OFF
  2. : SDLDEBUG.BAT for DR DOS Version 5.0
  3. IF (%1)==(END) GOTO NOCHANGE
  4. IF EXIST SDLSETUP.TXT GOTO TXTOK
  5. ECHO Unable to locate the text file to use with DEBUG.
  6. ECHO Please run SDLSETUP to create the necessary file.
  7. :NOCHANGE
  8. ECHO * * *
  9. ECHO NO CHANGES HAVE BEEN MADE TO SDL.COM!
  10. :pause
  11. GOTO END
  12. :TXTOK
  13. sdl_get F SDLSETUP.TXT
  14. IF %GET% == 0 GOTO NOCHANGE
  15. : *********************************
  16. :ECHO W >>SDLSETUP.TXT This is now done in SDLFINIS.BAT.
  17. ECHO Q>>SDLSETUP.TXT
  18. ECHO Input processing complete, now updating SDL.COM . . .
  19. : *********************************
  20. SID <SDLSETUP.TXT >DEBUG.TST
  21. IF EXIST DEBUG.TST GOTO OK
  22. ECHO * * *
  23. ECHO Using the DOS DEBUG command appears to have failed!
  24. ECHO DEBUG may not be on a valid disk drive on your system, or
  25. ECHO you may not have a path to DEBUG.  Please check the
  26. ECHO directories on your path for the existence of DEBUG.COM.
  27. ECHO If you can establish a path to DEBUG or copy DEBUG.COM
  28. ECHO to this working area, you can install the changes you
  29. ECHO have just made by entering SDLDEBUG.
  30. GOTO END
  31. :OK
  32. ERASE DEBUG.TST
  33. ECHO * * *
  34. ECHO SDL.COM has been modified.
  35. ECHO Don't forget to COPY your new version of SDL.COM
  36. ECHO to the disk and/or directory with your other DOS
  37. ECHO commands and utilities.
  38. :END
  39. *********************************
  40. IF EXIST SDL*.TXT ERASE SDL*.TXT >NUL
  41. SET GET=
  42. SET $=
  43. if not exist INSTALL.BAT goto ISMOD
  44. ECHO * * *
  45. Echo Would you like to run INSTALL to copy your modified version of
  46. Echo SDL.COM to the directory of your choice?
  47. SDL_GET N "Enter Y to run INSTALL, N to exit to DOS? "
  48. if errorlevel 89 if not errorlevel 90 INSTALL
  49. :ISMOD
  50. if not exist INSTALL.BAT pause
  51. if exist menu.bat menu
  52. ECHO Exiting to DOS ...
  53.